package 设计模式.factory.abstract_factory;

public class Test {
    public static void main(String[] args) {
       DessertFactory factory = new YiFactory();
        Coffee coffee = factory.createCoffee();
        Dessert dessert = factory.createDessert();
        coffee.getName();
        coffee.addMilk();
        dessert.show();


    }
}
